home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 October / enter-2005-10.iso / files / jedit42install.exe / {app} / jedit.jar / bsh / commands / getResource.bsh < prev    next >
Encoding:
Text File  |  2003-12-27  |  353 b   |  15 lines

  1. /**
  2.     Get a resource from the BeanShell classpath.
  3.     This method takes into account modification to the BeanShell class path via
  4.     addClassPath() and setClassPath();
  5. */
  6.  
  7. bsh.help.getResource = "usage: getResource( String name )";
  8.  
  9. import bsh.Interpreter;
  10.  
  11. URL getResource( String path ) 
  12. {
  13.     return this.interpreter.getClassManager().getResource( path );
  14. }
  15.